package cn.luowb.checkchat.service;

import cn.luowb.checkchat.common.result.Result;
import cn.luowb.checkchat.dao.entity.LikeDO;
import cn.luowb.checkchat.dto.resp.LikeCountsVO;
import cn.luowb.checkchat.dto.resp.MyLikesVO;
import cn.luowb.checkchat.dto.resp.ToggleLikeVO;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author heimenkyou
 * @description 针对表【like(点赞)】的数据库操作Service
 * @createDate 2025-09-01 19:07:09
 */

@Service
public interface LikeService extends IService<LikeDO> {

    Result<ToggleLikeVO> togglelike(int type, long objId);

    Result<LikeCountsVO> getLikeCounts(int type, List<String> idsRaw);

    MyLikesVO listMyLikes(Long uid, int type, int page, int pageSize);
}
